import styled from 'styled-components'

const MyUser = styled.div`
  .my-page {
    background-color: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 60px;
    font-family: 'PingFang SC', sans-serif;

    /* 用户信息 */
    .user-info {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 24px 0 16px;
      background-color: #fff;

      .avatar {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        margin-bottom: 8px;
      }

      .username {
        font-size: 16px;
        color: #333;
        font-weight: 500;
      }
    }

    /* 我的订单 */
    .order-section {
      background-color: #fff;
      margin-top: 8px;
      padding: 16px;
      border-radius: 6px;

      .order-header {
        display: flex;
        justify-content: space-between;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 16px;

        .order-all {
          color: #999;
          font-size: 14px;
        }
      }

      .order-status {
        display: flex;
        justify-content: space-around;
        text-align: center;

        .status-item {
          img {
            width: 28px;
            height: 28px;
            margin-bottom: 4px;
          }

          span {
            display: block;
            font-size: 14px;
            color: #555;
          }
        }
      }
    }

    /* 功能模块 */
    .function-section {
      background-color: #fff;
      margin-top: 8px;
      border-radius: 6px;

      .function-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        border-bottom: 1px solid #eee;
        font-size: 15px;
        color: #333;

        &:last-child {
          border-bottom: none;
        }

        .arrow {
          color: #ccc;
          font-size: 18px;
        }
      }
    }

    /* 退出登录按钮 */
    .logout-btn {
      background-color: #ff4d4f;
      color: #fff;
      text-align: center;
      margin: 16px;
      border-radius: 8px;
      padding: 12px 0;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
    }

    /* 底部导航 */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: space-around;
      background-color: #fff;
      border-top: 1px solid #eee;
      padding: 6px 0;

      .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
        color: #999;

        img {
          width: 22px;
          height: 22px;
          margin-bottom: 2px;
        }

        &.active {
          color: #00b578;
        }
      }
    }
  }
`

export default MyUser
